package duoxiaoduosheng;

public class maindemo {
	public static void main(String[] args) {
		StackPack stackPack = new StackPack(5);
		BunHandler bunProducer1 = new BunProducer(stackPack,"A");
		BunHandler bunProducer2 = new BunProducer(stackPack,"B");
		BunHandler bunProducer3 = new BunProducer(stackPack,"C");
		BunHandler bunCustomer1 = new BunCustomer(stackPack,"a");
		BunHandler bunCustomer2 = new BunCustomer(stackPack,"b");
		BunHandler bunCustomer3 = new BunCustomer(stackPack,"c");
		bunProducer1.start();
		bunProducer2.start();
		bunProducer3.start();
		bunCustomer1.start();
		bunCustomer2.start();
		bunCustomer3.start();
	}
}


